<include file="Common:header"/>

    <div class="container content">
      <div class="panel panel-default">
      <!-- Default panel contents -->
      <div class="panel-heading">文章列表 <a href="{:U('Article/edit')}">添加文章</a></div>

      <!-- Table -->
      <table class="table">
        <thead>
          <tr>
            <th>id</th>
            <th>文章标题</th>
            <th>发布时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <foreach name="articles" item="v">
            <tr>
              <th scope="row">{$v.id}</th>
              <td><a href="index.html" target="_blank">{$v.title}</a></td>
              <td>{$v.addtime}</td>
              <td>
                <a href="{:U('Article/edit',array('id'=>$v['id']))}" class="btn btn-success btn-xs">修改</a>
                <a href="{:U('Article/delArticle',array('id'=>$v['id']))}" class="btn btn-danger btn-xs">删除</a>
              </td>
            </tr>
          </foreach>
        </tbody>
      </table>
    </div>
    </div>
<include file="Common:js"/>
</body>
</html>
